package com.surfacing.rcp.server.listener;

import java.sql.SQLException;
import java.util.List;

import com.surfacing.rcp.model.QueryFilter;
import com.surfacing.rcp.model.common.AbstractMessage;
import com.surfacing.rcp.model.common.IServerListener;
import com.surfacing.rcp.model.entity.DAOException;

/**
 * An abstract adapter class for receiving client requests. The methods in this
 * class are empty. This class exists as convenience for creating listener
 * objects.
 * 
 * @author Michael
 */
public abstract class ServerListenerAdapter implements IServerListener {
	/**
	 * Handles login request
	 */
	@Override
	public AbstractMessage handleLoginRequest(AbstractMessage loginObject)
			throws DAOException, SQLException {
		return null;
	}

	/**
	 * Handles logout request
	 */
	@Override
	public AbstractMessage handleLogoutRequest(AbstractMessage logoutObject)
			throws DAOException, SQLException {
		return null;
	}

	/**
	 * Handles add requests
	 */
	@Override
	public AbstractMessage handleAddRequest(AbstractMessage addObject)
			throws DAOException, SQLException {
		return null;
	}

	/**
	 * Handles add request for multiple items
	 */
	@Override
	public List<AbstractMessage> handleAddAllRequest(
			List<AbstractMessage> addList) throws DAOException, SQLException {
		return null;
	}

	/**
	 * Handles listing requests
	 */
	@Override
	public List<AbstractMessage> handleListingRequest(QueryFilter queryFilter)
			throws DAOException, SQLException {
		return null;
	}

	/**
	 * Handles remove requests
	 */
	@Override
	public AbstractMessage handleRemoveRequest(AbstractMessage removeObject)
			throws DAOException, SQLException {
		return null;
	}

	/**
	 * Handles update requests
	 */
	@Override
	public AbstractMessage handleUpdateRequest(AbstractMessage updateObject)
			throws DAOException, SQLException {
		return null;
	}
}
